home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / maclibunix / stat.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-06  |  412 b   |  17 lines  |  [TEXT/R*ch]

  1. /* Include file belonging to stat emulator.
  2.    Public domain by Guido van Rossum, CWI, Amsterdam (July 1987). */
  3.  
  4. struct stat {
  5.     unsigned short st_mode;
  6.     unsigned long st_size;
  7.     unsigned long st_rsize; /* Resource size -- nonstandard */
  8.     unsigned long st_mtime;
  9. };
  10.  
  11. #define S_IFMT    0170000L
  12. #define S_IFDIR    0040000L
  13. #define S_IFREG 0100000L
  14. #define S_IREAD    0400
  15. #define S_IWRITE   0200
  16. #define S_IEXEC    0100
  17.